<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular-1.3.0.js"></script>
    <title></title>
</head>
<body ng-app>
<div ng-controller="control">{{aa}}
<button ng-click="bb()">{{name}}</button>
</div>
<script>
    function control ($scope){
        $scope.aa="hello world";
        $scope.name="hello world";
      setTimeout(function(){
          $scope.aa="我变了"
//          $scope.$apply(function(){ })
        },1000);
        $scope.bb= function(){
            $scope.name="按钮"
        }
    }
</script>
</body>
</html>